From: Lewis Cook Date: Sat, 20 Sep 2025 08:55:49 +0000 (+0100) Subject: status: Include deployment index in JSON output X-Git-Tag: archive/raspbian/2025.7-2+rpi1^2^2~6^2^2~11^2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=605299bdef75168bde88437b62b09efb13d55365;p=ostree.git status: Include deployment index in JSON output --- diff --git a/src/ostree/ot-admin-builtin-status.c b/src/ostree/ot-admin-builtin-status.c index b84fbba2..459f28f0 100644 --- a/src/ostree/ot-admin-builtin-status.c +++ b/src/ostree/ot-admin-builtin-status.c @@ -203,6 +203,7 @@ deployment_write_json (OstreeSysroot *sysroot, OstreeRepo *repo, OstreeDeploymen ul_jsonwrt_value_s (jo, "checksum", ref); ul_jsonwrt_value_s (jo, "stateroot", ostree_deployment_get_osname (deployment)); ul_jsonwrt_value_u64 (jo, "serial", ostree_deployment_get_deployserial (deployment)); + ul_jsonwrt_value_u64 (jo, "index", ostree_deployment_get_index (deployment)); ul_jsonwrt_value_boolean (jo, "booted", is_booted); ul_jsonwrt_value_boolean (jo, "pending", is_pending); ul_jsonwrt_value_boolean (jo, "rollback", is_rollback);